from rest_framework import status


class ObjectNotFoundException(Exception):
    pass


class SerializerValidateError(Exception):
    detail = None
    code = None

    def __init__(self, detail: str, code: int = status.HTTP_400_BAD_REQUEST):
        self.detail = detail
        self.code = code
